package com.itheima.edu.info.manager.entry;

import com.itheima.edu.info.manager.controller.OtherStudentController;
import com.itheima.edu.info.manager.controller.StudentController;
import com.itheima.edu.info.manager.controller.TeacherController;
import com.itheima.edu.info.manager.controller.TeacherController;

import java.util.Scanner;

/*
    程序入口
 */
public class InfoManaferEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //一级菜单建立
        //建立死循环方便重复使用
        while (true) {
            System.out.println("-----欢迎来到河马信息管理系统-----");
            System.out.println("请输入您的选择:1.学生管理2.老师管理3.退出");
            String choice = sc.next();
            //进行判断
            switch (choice) {
                case "1":
                    OtherStudentController studentController = new OtherStudentController();
                    studentController.start();
                    break;
                case "2":
                    TeacherController teacherController = new TeacherController();
                    teacherController.start();
                    break;
                case "3":
                    System.out.println("感谢您的使用!");
                    return;
                default:
                    System.out.println("您的输入有误,请重新输入!");
                    break;

            }
        }
    }
}
